package com.interview.ujiuye;

import java.io.FileNotFoundException;

interface MyFun {
    default String getFirstName(){
        return "哈哈哈";
    }
    public static void show(){
        System.out.println("蚂蚁金服.....");
    }
}
class MyClass {
    public String getName(){
        return "嘿嘿嘿";
    }
}

class SubClass extends MyClass implements  MyFun{

}

public class Demo3 {
    public static void main(String[] args) throws FileNotFoundException {
        SubClass subClass = new SubClass();
        System.out.println(subClass.getName());
        MyFun.show();
        System.out.println(subClass.getFirstName());
       // FileInputStream fileInputStream = new FileInputStream("a.txt");
        try
        {
            System.out.println("11111");
            System.exit(0);
        } catch (Exception e){
            e.printStackTrace();
            System.out.println("2222");
        } finally {
            System.out.println("333333");
        }
    }
}
